﻿using System;
using LogLibrary.Entity;

namespace SilverPOP.Data.Process.Helpers.LoggerHelper
{
    public static class LoggerHelper
    {
        public static int? ProjectId { get; set; }
        public static int? TaskListId { get; set; }
        public static int? CampaignId { get; set; }

        public static void Log(LogServiceInformation logServiceInformation, Type type, LogType logType)
        {
            logServiceInformation.ProjectId = ProjectId;
            logServiceInformation.TaskListId = TaskListId;
            logServiceInformation.CampaignId = CampaignId;

            var logger = new LogLibrary.Logger(type);
            logger.Log(logType, logServiceInformation);
        }
    }
}